#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#define ROW 10
#define MAX ROW+1
int main()
{
	int arr[MAX][MAX] = { 0 };
	for (int i = 1; i < MAX; i++)
	{
		for (int j = 1; j < MAX; j++)
		{
			arr[i][j] = arr[i - 1][j - 1] + arr[i - 1][j];
			arr[1][1] = 1;
		}
	}
	for (int i = 1; i < MAX; i++)
	{
		for (int j = 1; j <= i; j++)
		{
			printf("%-3d ", arr[i][j]);
		}
		printf("\n");
	}
	return 0;
}